const HtmlWebpackPlugin = require("html-webpack-plugin");
module.exports = {
    mode: "development",
    devServer: {
        open: true,
        hot: true
    },
    module:{
        rules:[
            {
                test:/\.css$/,
                use:['style-loader','css-loader']
            }
        ]
    },
    plugins: [
        new HtmlWebpackPlugin({template:'./public/index.html'})
    ]
}